package com.trsj.lnsj.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.trsj.lnsj.entity.UserSignPersonDTO;
import com.trsj.lnsj.entity.UserSignPersonRepo;
/**  

* <p>Title: UserSignPersonSerivce.java</p>  

* <p>Description: </p>  

* <p>Copyright: Copyright (c) 2018</p>  

* <p>Company: 七色环</p>  

* @author longky  

* @date 2018年9月15日  

* @version 1.0  

*/
@Service
public class UserSignPersonSerivce {
	@Autowired
private UserSignPersonRepo userSignPersonRepo;
	
public Page<UserSignPersonDTO>  selectByUserId(Long userId,Pageable pageable){
	Page page=userSignPersonRepo.findByUserId(pageable,userId);
	return page;
}
public List<UserSignPersonDTO> save(List<UserSignPersonDTO> u){
	List<UserSignPersonDTO> list= userSignPersonRepo.save(u);
	return list;
}
}

